package com.makemoney.miniprogram.modules.users.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.makemoney.miniprogram.common.consts.GenderEnum;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_user")
public class Users {

    @TableId
    private Long id;

    private String userName;
    private String password;
    private String realName;
    private LocalDateTime lastLoginTime;

    private GenderEnum gender;
    private String phone;
    private Short locked;
    private LocalDateTime pwdUpdateTime;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;
    @TableLogic
    private Short deleted;

}
